package com.itheima.demo;

//单例模式
public class Singleton {
    private final static Singleton singleton = new Singleton();

    private Singleton() {
    }

    public static Singleton getSingleton(){
        return singleton;
    }
}
